﻿Array.prototype.IndexOf = function IndexOf(item)
{
	if (this.indexOf != null)
		return this.indexOf(item);

	for (var i = 0; i < this.length; ++i)
	{
		if (this[i] == item)
			return i;
	}
	return -1;
}
